package com.demo.salary;

import java.time.LocalDate;

public class PayCheck {

    private final LocalDate itsPayDate;

    double grossPay;
    double deductions ;
    double netPay;
    private LocalDate payPeriodStartDate;

    public PayCheck(LocalDate payPeriodStartDate,LocalDate itsPayDate) {
        this.itsPayDate = itsPayDate;
        this.payPeriodStartDate = payPeriodStartDate;
    }

    public LocalDate getItsPayDate() {
        return itsPayDate;
    }

    public double getGrossPay() {
        return grossPay;
    }

    public void setGrossPay(double grossPay) {
        this.grossPay = grossPay;
    }

    public double getDeductions() {
        return deductions;
    }

    public void setDeductions(double deductions) {
        this.deductions = deductions;
    }

    public double getNetPay() {
        return netPay;
    }

    public void setNetPay(double netPay) {
        this.netPay = netPay;
    }

    public LocalDate getPayPeriodStartDate() {
        return payPeriodStartDate;
    }
}
